﻿using Cart.SanPhamSrv;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Cart
{
    public partial class ThemLoaiSanPham : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void register_button1_Click(object sender, EventArgs e)
        {
            using (var spService = new SanPhamSrv.SanPhamServiceClient())
            {
                var loaisanphammodel = new LoaiSanPham();
                loaisanphammodel.Ten = txtHoTen.Text;
                var result = spService.CapNhatLoaiSanPham(loaisanphammodel);
                Response.Redirect("~/Ds_LoaiSP.aspx");
            }
        }
    }
}